import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import Shou from '../views/Shou.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      redirect: '/home/shou'
    },
    {
      path: '/home',
      component: HomeView,
      children: [
        {
          path: '/home/shou',
          component: Shou
        }
      ]
    }
  ]
})

export default router
